package com.yunfeisoft.business.model;

import com.applet.base.ServiceModel;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * ClassName: PmsSkuStock
 * Description: 商品SKU表(商品库存量单位表)
 *
 * @Author: Jackie liu
 * Date: 2020-06-02
 */
@Entity
@Table(name = "PMS_SKU_STOCK")
public class PmsSkuStock extends ServiceModel implements Serializable {

    /**
     * Field serialVersionUID: 序列号
     */
    private static final long serialVersionUID = 1L;

    /**
     * 商品id
     */
    @Column
    private String productId;

    /**
     * sku编码
     */
    @Column
    private String skuCode;

    /**
     * 价格
     */
    @Column
    private BigDecimal price;

    /**
     * 库存
     */
    @Column
    private Integer stock;

    /**
     * 库存预警值
     */
    @Column
    private Integer lowStock;

    /**
     * 规格属性1（规格id）
     */
    @Column
    private String sp1;

    /**
     * 规格属性2（规格值）
     */
    @Column
    private String sp2;

    /**
     * 规格属性3
     */
//    @Column
//    private String sp3;

    /**
     * 展示图片
     */
//    @Column
//    private String pic;

    /**
     * 销量
     */
    @Column
    private Integer sale;

    /**
     * 单品促销价格
     */
    @Column
    private BigDecimal promotionPrice;

    /**
     * 锁定库存
     */
    @Column
    private Integer lockStock;


    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public String getSkuCode() {
        return skuCode;
    }

    public void setSkuCode(String skuCode) {
        this.skuCode = skuCode;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Integer getStock() {
        return stock;
    }

    public void setStock(Integer stock) {
        this.stock = stock;
    }

    public Integer getLowStock() {
        return lowStock;
    }

    public void setLowStock(Integer lowStock) {
        this.lowStock = lowStock;
    }

    public String getSp1() {
        return sp1;
    }

    public void setSp1(String sp1) {
        this.sp1 = sp1;
    }

    public String getSp2() {
        return sp2;
    }

    public void setSp2(String sp2) {
        this.sp2 = sp2;
    }

    /*public String getSp3() {
        return sp3;
    }

    public void setSp3(String sp3) {
        this.sp3 = sp3;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }*/

    public Integer getSale() {
        return sale;
    }

    public void setSale(Integer sale) {
        this.sale = sale;
    }

    public BigDecimal getPromotionPrice() {
        return promotionPrice;
    }

    public void setPromotionPrice(BigDecimal promotionPrice) {
        this.promotionPrice = promotionPrice;
    }

    public Integer getLockStock() {
        return lockStock;
    }

    public void setLockStock(Integer lockStock) {
        this.lockStock = lockStock;
    }


}